home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Delphi Options.xpl < prev    next >
Text File  |  1999-09-11  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Program Options\Delphi"
  5. "NAME"="Delphi CPU Window"
  6. "VERSION"="1.13"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable Delphi 2.x CPU Window"
  9. "TEXT 2"="Enable Delphi 3.x CPU Window"
  10. "DESCRIPTION 1"="Activating this feature adds the command "CPU Window" to Delphi."
  11. "DESCRIPTION 2"="Simply select "CPU Window" from the "View" menu and you will see a Disassembly View of the current stack."
  12. "DESCRIPTION 3"="Note: Some menus don't work."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16. "COMMENT 2"="from "Registry Dompteur" RegDom (c) 1996..98 by Horst Schmid, Horst_Schmid@compuserve.com"
  17.  
  18.  
  19.  
  20. sP1="HKCU\Software\Borland\Delphi\"
  21. sP2=".0\Debugging\ENABLECPU"
  22. Sub Plugin_Initialize 
  23.  if RegPathExists(sP1)=true then
  24.     s=RegReadValue(sP1 & "2" & sP2)
  25.     if s="1" then
  26.        SetUIElement 1,true
  27.     end if
  28.  
  29.     s=RegReadValue(sP1 & "3" & sP2)
  30.     if s="1" then
  31.        SetUIElement 2,true
  32.     end if
  33.  else
  34.     Call Disable()
  35.  end if
  36. End Sub
  37.  
  38.  
  39. Sub Plugin_CheckData(ElementIndex)
  40. End Sub
  41.  
  42.  
  43.  
  44. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  45.  b=GetUIElement(1)
  46.  if b=true then
  47.   Call RegWriteValue(sP1 & "2" & sP2,"1",1)
  48.  else
  49.   Call RegWriteValue(sP1 & "2" & sP2,"0",1)
  50.  end if
  51.  
  52.  b=GetUIElement(2)
  53.  if b=true then
  54.   Call RegWriteValue(sP1 & "3" & sP2,"1",1)
  55.  else
  56.   Call RegWriteValue(sP1 & "3" & sP2,"0",1)
  57.  end if
  58. End Sub
  59.  
  60.  
  61. Sub Plugin_Terminate 
  62. End Sub
  63.  
  64.  
  65.  
  66.